"
I serialize or materialize objects using FUEL framework. Create instance of me calling GlobalIdentifierPersistence fuel.
"
Class {
	#name : 'GlobalIdentifierFuelPersistence',
	#superclass : 'GlobalIdentifierPersistence',
	#category : 'System-Identification',
	#package : 'System-Identification'
}

{ #category : 'configuration' }
GlobalIdentifierFuelPersistence >> fileName [
	^ 'org.pharo.gt.spotter.event.recorder.fuel'
]

{ #category : 'load and saving' }
GlobalIdentifierFuelPersistence >> load [
	^ FLMaterializer new
		filePath: self preferences fullName;
		materializeRoot
]

{ #category : 'load and saving' }
GlobalIdentifierFuelPersistence >> save: aDictionary into: aWriteStream [
	[ FLSerializer new
		onStream: aWriteStream;
		object: aDictionary;
		serialize ]
			on: Error
			do: [ :anError | "ignore" ]
]
